package com.peas.platform.module.icims.base.auth.enums;

import com.peas.platform.common.core.enums.BaseEnum;
import com.peas.platform.common.core.enums.CommonElType;

public enum PermissionType implements BaseEnum {

    system("1", "系统", CommonElType.primary),
    menu("2", "菜单", CommonElType.warning),
    item("3", "菜单项", CommonElType.success),
    button("4", "按钮", CommonElType.info),
    column("5", "数据列", CommonElType.info),
    ;

    private final String key;
    private final String value;
    private final CommonElType elTagType;

    PermissionType(String key, String value, CommonElType elTagType) {
        this.key = key;
        this.value = value;
        this.elTagType = elTagType;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }

    @Override
    public CommonElType getElTagType() {
        return elTagType;
    }

}
